package com.xingdata.jjxc.enty;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.xingdata.jjxc.utils.callback.IJsontoOp;
import com.xingdata.jjxc.utils.database.Column;

/**
 * 
 * @Description: TODO(HUD校验表)
 * @date 2015-9-16 上午12:25:44 Creater JiangMin
 */
public class HudAuthEntity implements ITableEntity, IJsontoOp, Serializable {
	private static final long serialVersionUID = 1L;

	public static String _TableName = "E_hud_auth";
	private String hud_code; // HUD标识
	private String userid; // 用户id
	private String crt_time; // 创建时间

	public String getHud_code() {
		return hud_code;
	}

	public void setHud_code(String hud_code) {
		this.hud_code = hud_code;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getCrt_time() {
		return crt_time;
	}

	public void setCrt_time(String crt_time) {
		this.crt_time = crt_time;
	}

	@Override
	public IJsontoOp GetOb(Map<String, Object> map) {
		return null;
	}

	@Override
	public List<Column> GetColumns() {
		List<Column> objColumnList = new ArrayList<Column>();
		Column objColumn = null;

		objColumn = new Column();
		objColumn.setColumnName(ColumnName.hud_code);
		objColumn.setColumnType(ColumnType.String);
		objColumn.setIsAutoIncrement(false);
		objColumn.setIsPrimaryKey(true);
		objColumn.setMaxLength(999999999);
		objColumn.setMinLength(0);
		objColumnList.add(objColumn);

		String[] columnNames = { ColumnName.userid,
				ColumnName.crt_time };
		for (int i = 0; i < columnNames.length; i++) {
			objColumn = new Column();
			objColumn.setColumnName(columnNames[i]);
			objColumn.setColumnType(ColumnType.String);
			objColumn.setIsAutoIncrement(false);
			objColumn.setIsPrimaryKey(false);
			objColumn.setMaxLength(999999999);
			objColumn.setMinLength(0);
			objColumnList.add(objColumn);
		}
		return objColumnList;
	}

	@Override
	public String GetTableName() {
		return _TableName;
	}

	public class ColumnName {
		public static final String hud_code = "hud_code";
		public static final String userid = "userid";
		public static final String crt_time = "crt_time";

	}

}
